#include <iostream>
#include <algorithm>
using namespace std;

int main()
{
	string s = "hello word!";
	reverse(s.begin(), s.end());
	cout << s << endl;
	
	return 0;
}
